import CONFIG from './config.js'

class GameInfo {
    constructor(game) {
        this.game = game;
        this.ts = new Date().getTime();

        this.spirit_list = [];
        this.weapon_list = [];

        this._status = "stop"; // stop, running, pause
        this.loop_count = 0;
        this.spirit_count = 0;
        this.escape_spirit_count = 0;
        this.blood_amount = 0;

        this.gold = CONFIG.gold;
    }

    get is_stop() {
        return this._status === "stop";
    }

    get is_running() {
        return this._status === "running";
    }

    get is_pause() {
        return this._status === "pause";
    }

    set status(s) {
        this._status = s;
    }

    get status() {
        return this._status;
    }
}

export default GameInfo;